package com.example.Result;

public class Result<T> {

    public enum code{
        OK,  //成功
        ERR_ParamNotFound,   //参数未找到
        ERR_Param,           //参数错误
        ERR_Service,         //服务器错误
    }
    public code res;

    public T data;

    public Result(code res, T data) {
        this.res = res;
        this.data = data;
    }
}
